import { Store, Model } from '@/store/index'

// 下拉单选数据 用于下拉显示
export class StoreSelect extends Store {
  // 组件加载 申请数据
  autoLoad = true
  url = '/api/test'
}

export class StoreSelectM extends Store {
  // 组件加载 申请数据
  autoLoad = true
  url = '/api/testM'
}

export class StoreSelectE extends Store {}

export class StoreSelectL extends Store {
  // 组件加载 申请数据
  autoLoad = true
  url = '/api/testL'
}

// 下拉单选详情 用于具体查询
export class ModelSelect extends Model {
  proxy = {
    action: {
      findDataUrl: '/api/detail',
      deleteDataUrl: '',
      editDataUrl: ''
    }
  }
}

export class ModelSelectM extends Model {
  proxy = {
    action: {
      findDataUrl: '/api/detailM',
      deleteDataUrl: '',
      editDataUrl: ''
    }
  }
}

export class ModelSelectA extends Model {
  proxy = {
    action: {
      findDataUrl: '/api/add',
      deleteDataUrl: '',
      editDataUrl: ''
    }
  }
}

export class ModelSelectS extends Model {
  proxy = {
    action: {
      findDataUrl: '/api/search',
      deleteDataUrl: '',
      editDataUrl: ''
    }
  }
}
